#!/usr/bin/python

import sys
import urllib

handle = urllib.urlopen('http://localhost/')
if handle.getcode() == "200":
  sys.exit(0)
else:
  print >> sys.stderr, "HTTP Return code: %d" % handle.getcode()
  sys.exit(2)
